/*
 * @Author: lucky
 * @Date: 2021-06-29 17:24:47
 * @LastEditors: ljy
 * @LastEditTime: 2021-07-01 19:22:16
 * @Description: 
 */
import { get, post, postJSON } from '@/utils/request';

// 登录api
export function login(data) {
  return postJSON('/user/login', data);
}

// 登出api
export function logout() {
  return post('/user/logout');
}

// 注册api
export function register(data) {
  return post('/user/register', data);
}

// 通过token获取用户信息
export function info(data) {
  return get('/user/info', data)
}
